<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateHmSkinRecordsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('hm_skin_records', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('skin_record_id')->comment('检测记录ID');
			$table->integer('wechat_user_id')->default(0)->comment('对应微信用户的ID，无则为0');
			$table->float('flex')->comment('弹性');
			$table->float('oil')->comment('油');
			$table->float('water')->comment('水分');
			$table->boolean('age')->default(0)->comment('检测的年龄');
			$table->boolean('position')->default(0)->comment('检测位置 
1 "eye" /
2 "cheek" /
3 "neck" /
4 "hand" /
');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('hm_skin_records');
	}

}
